package com.books.model.entity.lang;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.stereotype.Component;

import java.io.Serializable;
import java.util.Date;

@Data
@Component
@AllArgsConstructor
@NoArgsConstructor
public class ImMess implements Serializable {
    private String username;
    private String avatar;
    private String type;//聊天窗口来源类型，从发送消息传递的to里面获取
    private String content;
    private Integer cid;
    private Boolean mine;
    private Integer fromid;
    private Date timestamp;
    private Integer id;//消息的来源ID（如果是私聊，则是用户id，如果是群聊，则是群组id
}
